const mysql = require('mysql');
const connection = mysql.createConnection({
    host: 'localhost',
    port: 3306,
    user: 'root',
    password: 'admin888',
    database: 'node_mysql',
});

connection.connect();

const sql = 'SELECT * FROM users';
connection.query(sql, function (err, rows, fields) {
    if (err) throw err;

    console.log('The solution is: ', rows[0].solution);

    console.log(fields);
});

connection.end();